import { BaseApi } from '/@/api-services/apis/baseApi';
import { SysMenu, MenuUpdateInput, MenuAddInput } from '../../models/system'

/**
 * 菜单管理Api
 */
class SysMenuApi extends BaseApi<SysMenu, MenuAddInput, MenuUpdateInput> {

   getMenuTree=async()=>{
      return this.normalGet<Array<SysMenu>>(`/tree`,null)
   }
}

export default new SysMenuApi('/system/menu');